﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace VerificadorF3101
{
    public delegate void BGStatusReportedEventHandler(object sender, StatusEventArgs e);

    public class BGWorker : BackgroundWorker
    {
        public event BGStatusReportedEventHandler StatusReported;

        protected virtual void OnStatusReported(string status)
        {
            if (StatusReported != null)
                StatusReported(this, new StatusEventArgs { Status = status });
        }

        public virtual void ReportStatus(string status)
        {
            OnStatusReported(status);
        }

    }
}
